package br.ufpe.cin.log.generator.activator;

import org.osgi.framework.BundleActivator;
import org.osgi.framework.BundleContext;

import br.ufpe.cin.log.generator.impl.LogGeneratorImpl;
import br.ufpe.cin.log.generator.service.LogGenerator;


public class Activator implements BundleActivator{

	private BundleContext bundleContext;
	
	@Override
	public void start(BundleContext context) throws Exception {
		System.out.println("====== Instalou Log Generator ======= ");
		this.bundleContext = context;
		this.bundleContext.registerService(LogGenerator.class.getName(), new LogGeneratorImpl(), null);
	}

	@Override
	public void stop(BundleContext context) throws Exception {
		// TODO Auto-generated method stub
		
	}

}
